{
  "cells": [
    {
      "cell_type": "markdown",
      "source": [
        "# Scaling and Transformations"
      ],
      "metadata": {
        "nteract": {
          "transient": {
            "deleting": false
          }
        }
      }
    },
    {
      "cell_type": "code",
      "source": [
        "import numpy as np\n",
        "import pandas as pd\n",
        "import matplotlib.pyplot as plt\n",
        "\n",
        "import warnings\n",
        "warnings.filterwarnings(\"ignore\")\n",
        "\n",
        "# yfinance is used to fetch data \n",
        "import yfinance as yf\n",
        "yf.pdr_override()"
      ],
      "outputs": [],
      "execution_count": 1,
      "metadata": {
        "collapsed": true,
        "jupyter": {
          "source_hidden": false,
          "outputs_hidden": false
        },
        "nteract": {
          "transient": {
            "deleting": false
          }
        },
        "execution": {
          "iopub.status.busy": "2021-07-18T23:36:25.367Z",
          "iopub.execute_input": "2021-07-18T23:36:25.374Z",
          "iopub.status.idle": "2021-07-18T23:36:25.465Z",
          "shell.execute_reply": "2021-07-18T23:36:25.490Z"
        }
      }
    },
    {
      "cell_type": "code",
      "source": [
        "# input\n",
        "symbol = 'AMD'\n",
        "start = '2014-01-01'\n",
        "end = '2018-08-27'\n",
        "\n",
        "# Read data \n",
        "dataset = yf.download(symbol,start,end)\n",
        "\n",
        "# View Columns\n",
        "dataset.head()"
      ],
      "outputs": [
        {
          "output_type": "stream",
          "name": "stdout",
          "text": [
            "[*********************100%***********************]  1 of 1 completed\n"
          ]
        },
        {
          "output_type": "execute_result",
          "execution_count": 2,
          "data": {
            "text/plain": "            Open  High   Low  Close  Adj Close    Volume\nDate                                                    \n2014-01-02  3.85  3.98  3.84   3.95       3.95  20548400\n2014-01-03  3.98  4.00  3.88   4.00       4.00  22887200\n2014-01-06  4.01  4.18  3.99   4.13       4.13  42398300\n2014-01-07  4.19  4.25  4.11   4.18       4.18  42932100\n2014-01-08  4.23  4.26  4.14   4.18       4.18  30678700",
            "text/html": "<div>\n<style scoped>\n    .dataframe tbody tr th:only-of-type {\n        vertical-align: middle;\n    }\n\n    .dataframe tbody tr th {\n        vertical-align: top;\n    }\n\n    .dataframe thead th {\n        text-align: right;\n    }\n</style>\n<table border=\"1\" class=\"dataframe\">\n  <thead>\n    <tr style=\"text-align: right;\">\n      <th></th>\n      <th>Open</th>\n      <th>High</th>\n      <th>Low</th>\n      <th>Close</th>\n      <th>Adj Close</th>\n      <th>Volume</th>\n    </tr>\n    <tr>\n      <th>Date</th>\n      <th></th>\n      <th></th>\n      <th></th>\n      <th></th>\n      <th></th>\n      <th></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <th>2014-01-02</th>\n      <td>3.85</td>\n      <td>3.98</td>\n      <td>3.84</td>\n      <td>3.95</td>\n      <td>3.95</td>\n      <td>20548400</td>\n    </tr>\n    <tr>\n      <th>2014-01-03</th>\n      <td>3.98</td>\n      <td>4.00</td>\n      <td>3.88</td>\n      <td>4.00</td>\n      <td>4.00</td>\n      <td>22887200</td>\n    </tr>\n    <tr>\n      <th>2014-01-06</th>\n      <td>4.01</td>\n      <td>4.18</td>\n      <td>3.99</td>\n      <td>4.13</td>\n      <td>4.13</td>\n      <td>42398300</td>\n    </tr>\n    <tr>\n      <th>2014-01-07</th>\n      <td>4.19</td>\n      <td>4.25</td>\n      <td>4.11</td>\n      <td>4.18</td>\n      <td>4.18</td>\n      <td>42932100</td>\n    </tr>\n    <tr>\n      <th>2014-01-08</th>\n      <td>4.23</td>\n      <td>4.26</td>\n      <td>4.14</td>\n      <td>4.18</td>\n      <td>4.18</td>\n      <td>30678700</td>\n    </tr>\n  </tbody>\n</table>\n</div>"
          },
          "metadata": {}
        }
      ],
      "execution_count": 2,
      "metadata": {
        "collapsed": true,
        "jupyter": {
          "source_hidden": false,
          "outputs_hidden": false
        },
        "nteract": {
          "transient": {
            "deleting": false
          }
        },
        "execution": {
          "iopub.status.busy": "2021-07-18T23:36:25.475Z",
          "iopub.execute_input": "2021-07-18T23:36:25.480Z",
          "iopub.status.idle": "2021-07-18T23:36:26.192Z",
          "shell.execute_reply": "2021-07-18T23:36:26.256Z"
        }
      }
    },
    {
      "cell_type": "code",
      "source": [
        "dataset.tail()"
      ],
      "outputs": [
        {
          "output_type": "execute_result",
          "execution_count": 3,
          "data": {
            "text/plain": "                 Open   High        Low      Close  Adj Close     Volume\nDate                                                                    \n2018-08-20  19.790001  20.08  19.350000  19.980000  19.980000   62983200\n2018-08-21  19.980000  20.42  19.860001  20.400000  20.400000   55629000\n2018-08-22  20.280001  20.92  20.209999  20.900000  20.900000   62002700\n2018-08-23  21.190001  22.32  21.139999  22.290001  22.290001  113444100\n2018-08-24  22.910000  24.00  22.670000  23.980000  23.980000  164328200",
            "text/html": "<div>\n<style scoped>\n    .dataframe tbody tr th:only-of-type {\n        vertical-align: middle;\n    }\n\n    .dataframe tbody tr th {\n        vertical-align: top;\n    }\n\n    .dataframe thead th {\n        text-align: right;\n    }\n</style>\n<table border=\"1\" class=\"dataframe\">\n  <thead>\n    <tr style=\"text-align: right;\">\n      <th></th>\n      <th>Open</th>\n      <th>High</th>\n      <th>Low</th>\n      <th>Close</th>\n      <th>Adj Close</th>\n      <th>Volume</th>\n    </tr>\n    <tr>\n      <th>Date</th>\n      <th></th>\n      <th></th>\n      <th></th>\n      <th></th>\n      <th></th>\n      <th></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <th>2018-08-20</th>\n      <td>19.790001</td>\n      <td>20.08</td>\n      <td>19.350000</td>\n      <td>19.980000</td>\n      <td>19.980000</td>\n      <td>62983200</td>\n    </tr>\n    <tr>\n      <th>2018-08-21</th>\n      <td>19.980000</td>\n      <td>20.42</td>\n      <td>19.860001</td>\n      <td>20.400000</td>\n      <td>20.400000</td>\n      <td>55629000</td>\n    </tr>\n    <tr>\n      <th>2018-08-22</th>\n      <td>20.280001</td>\n      <td>20.92</td>\n      <td>20.209999</td>\n      <td>20.900000</td>\n      <td>20.900000</td>\n      <td>62002700</td>\n    </tr>\n    <tr>\n      <th>2018-08-23</th>\n      <td>21.190001</td>\n      <td>22.32</td>\n      <td>21.139999</td>\n      <td>22.290001</td>\n      <td>22.290001</td>\n      <td>113444100</td>\n    </tr>\n    <tr>\n      <th>2018-08-24</th>\n      <td>22.910000</td>\n      <td>24.00</td>\n      <td>22.670000</td>\n      <td>23.980000</td>\n      <td>23.980000</td>\n      <td>164328200</td>\n    </tr>\n  </tbody>\n</table>\n</div>"
          },
          "metadata": {}
        }
      ],
      "execution_count": 3,
      "metadata": {
        "collapsed": true,
        "jupyter": {
          "source_hidden": false,
          "outputs_hidden": false
        },
        "nteract": {
          "transient": {
            "deleting": false
          }
        },
        "execution": {
          "iopub.status.busy": "2021-07-18T23:36:26.201Z",
          "iopub.execute_input": "2021-07-18T23:36:26.207Z",
          "iopub.status.idle": "2021-07-18T23:36:26.223Z",
          "shell.execute_reply": "2021-07-18T23:36:26.262Z"
        }
      }
    },
    {
      "cell_type": "markdown",
      "source": [
        "# Normalization"
      ],
      "metadata": {
        "nteract": {
          "transient": {
            "deleting": false
          }
        }
      }
    },
    {
      "cell_type": "code",
      "source": [
        "from sklearn.preprocessing import MinMaxScaler"
      ],
      "outputs": [],
      "execution_count": 4,
      "metadata": {
        "collapsed": true,
        "jupyter": {
          "source_hidden": false,
          "outputs_hidden": false
        },
        "nteract": {
          "transient": {
            "deleting": false
          }
        },
        "execution": {
          "iopub.status.busy": "2021-07-18T23:36:26.232Z",
          "iopub.execute_input": "2021-07-18T23:36:26.239Z",
          "iopub.status.idle": "2021-07-18T23:36:26.541Z",
          "shell.execute_reply": "2021-07-18T23:36:26.621Z"
        }
      }
    },
    {
      "cell_type": "code",
      "source": [
        "# Instantiate MinMaxScaler\n",
        "MM_scaler = MinMaxScaler()\n",
        "\n",
        "# Fit MM_scaler to the data\n",
        "MM_scaler.fit(dataset[['Volume']])\n",
        "\n",
        "# Transform the data using the fitted scaler\n",
        "dataset['Volume_MM'] = MM_scaler.transform(dataset[['Volume']])"
      ],
      "outputs": [],
      "execution_count": 5,
      "metadata": {
        "collapsed": true,
        "jupyter": {
          "source_hidden": false,
          "outputs_hidden": false
        },
        "nteract": {
          "transient": {
            "deleting": false
          }
        },
        "execution": {
          "iopub.status.busy": "2021-07-18T23:36:26.550Z",
          "iopub.execute_input": "2021-07-18T23:36:26.556Z",
          "iopub.status.idle": "2021-07-18T23:36:26.565Z",
          "shell.execute_reply": "2021-07-18T23:36:26.626Z"
        }
      }
    },
    {
      "cell_type": "code",
      "source": [
        "print(dataset[['Volume_MM', 'Volume']].head())"
      ],
      "outputs": [
        {
          "output_type": "stream",
          "name": "stdout",
          "text": [
            "            Volume_MM    Volume\n",
            "Date                           \n",
            "2014-01-02   0.076577  20548400\n",
            "2014-01-03   0.085293  22887200\n",
            "2014-01-06   0.158004  42398300\n",
            "2014-01-07   0.159994  42932100\n",
            "2014-01-08   0.114329  30678700\n"
          ]
        }
      ],
      "execution_count": 6,
      "metadata": {
        "collapsed": true,
        "jupyter": {
          "source_hidden": false,
          "outputs_hidden": false
        },
        "nteract": {
          "transient": {
            "deleting": false
          }
        },
        "execution": {
          "iopub.status.busy": "2021-07-18T23:36:26.575Z",
          "iopub.execute_input": "2021-07-18T23:36:26.581Z",
          "iopub.status.idle": "2021-07-18T23:36:26.596Z",
          "shell.execute_reply": "2021-07-18T23:36:26.629Z"
        }
      }
    },
    {
      "cell_type": "code",
      "source": [
        "dataset[['Volume_MM', 'Volume']].hist()\n",
        "plt.show()"
      ],
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "text/plain": "<Figure size 432x288 with 2 Axes>",
            "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXgAAAEVCAYAAADq9/4iAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuNCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8QVMy6AAAACXBIWXMAAAsTAAALEwEAmpwYAAAVSUlEQVR4nO3df7BkZX3n8fdHUCAYRcG9IUAcKpJN2LCimUISs7U3kGzxI3GojVoYlMElO5UqNpoKVS7ruvlhmS38A39RWbMTsRhYohB/zWykDBRwy3WzsIKwjEBcRx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fgj4hTUa2zRZUSZOa8D7tu8p0V3zvQZ4qKreM+nxNGSYGt8GbOyWXwvcXu29M3HJ83DAtebX0Ps70KFmG3Bx92qaM4Gnq+qxpe40lV/ZN4aPO5iIJB8B5oHjkuwC/rCqrpnsqJbt1cCbgO1J7uva3l5VN09uSLNvsRpP8k7g7qraRu8/1uuT7KD3B7gLJzfi8RjyPLwlyWvovaLrW8AlExvwmAzKCuC5AFX1Z8DNwHnADuAZ4M1D7be9CYEkCab3Eo0kaZUMeElqlAEvSY0y4CWpUQa8Jm45H8qW5Ke6Dz+7t3tn43lrMUZpFhnwmgbXMvyHsr0DuKmqXkHvZYP/ZVyDkmadAa+JG/RBS0l+OslnktyT5H8k+dn93YEXdMsvBL62hkOVZspUvtFJovc9lL9TVV9O8ip6M/WzgD8Cbknyu8DRwK9ObojSdDPgNXW6Dzb7JeAv+z4d94ju5xuAa6vqqiS/SO+dnj9fVT+cwFClqWbAaxo9B3iqqk4fsO1Suuv1VfW/khwJHAfsWbvhSbPBa/CaOt3HEX81yevg2a8re3m3+e+As7v2nwOOBL4xkYFKU87PotHE9X/QEvA4vQ9aup3e15IdT+9Dlz5aVe/svs7tz4Hn0/uD69uq6pZJjFuadga8JDXKSzSS1CgDXpIaZcBLUqMMeElqlAEvSY0y4CWpUQa8JDXq/wHf087MkYDR9QAAAABJRU5ErkJggg==\n"
          },
          "metadata": {
            "needs_background": "light"
          }
        }
      ],
      "execution_count": 7,
      "metadata": {
        "collapsed": true,
        "jupyter": {
          "source_hidden": false,
          "outputs_hidden": false
        },
        "nteract": {
          "transient": {
            "deleting": false
          }
        },
        "execution": {
          "iopub.status.busy": "2021-07-18T23:36:26.605Z",
          "iopub.execute_input": "2021-07-18T23:36:26.610Z",
          "iopub.status.idle": "2021-07-18T23:36:26.727Z",
          "shell.execute_reply": "2021-07-18T23:36:26.827Z"
        }
      }
    },
    {
      "cell_type": "markdown",
      "source": [
        "# Standardization"
      ],
      "metadata": {
        "nteract": {
          "transient": {
            "deleting": false
          }
        }
      }
    },
    {
      "cell_type": "code",
      "source": [
        "from sklearn.preprocessing import StandardScaler"
      ],
      "outputs": [],
      "execution_count": 8,
      "metadata": {
        "collapsed": true,
        "jupyter": {
          "source_hidden": false,
          "outputs_hidden": false
        },
        "nteract": {
          "transient": {
            "deleting": false
          }
        },
        "execution": {
          "iopub.status.busy": "2021-07-18T23:36:26.738Z",
          "iopub.execute_input": "2021-07-18T23:36:26.743Z",
          "iopub.status.idle": "2021-07-18T23:36:26.751Z",
          "shell.execute_reply": "2021-07-18T23:36:26.833Z"
        }
      }
    },
    {
      "cell_type": "code",
      "source": [
        "# Instantiate StandardScaler\n",
        "SS_scaler = StandardScaler()\n",
        "\n",
        "# Fit SS_scaler to the data\n",
        "SS_scaler.fit(dataset[['Volume']])\n",
        "\n",
        "# Transform the data using the fitted scaler\n",
        "dataset['Volume_SS'] = SS_scaler.transform(dataset[['Volume']])\n"
      ],
      "outputs": [],
      "execution_count": 9,
      "metadata": {
        "collapsed": true,
        "jupyter": {
          "source_hidden": false,
          "outputs_hidden": false
        },
        "nteract": {
          "transient": {
            "deleting": false
          }
        },
        "execution": {
          "iopub.status.busy": "2021-07-18T23:36:26.760Z",
          "iopub.execute_input": "2021-07-18T23:36:26.766Z",
          "iopub.status.idle": "2021-07-18T23:36:26.776Z",
          "shell.execute_reply": "2021-07-18T23:36:26.837Z"
        }
      }
    },
    {
      "cell_type": "code",
      "source": [
        "print(dataset[['Volume_SS', 'Volume']].head())"
      ],
      "outputs": [
        {
          "output_type": "stream",
          "name": "stdout",
          "text": [
            "            Volume_SS    Volume\n",
            "Date                           \n",
            "2014-01-02  -0.509131  20548400\n",
            "2014-01-03  -0.439377  22887200\n",
            "2014-01-06   0.142538  42398300\n",
            "2014-01-07   0.158459  42932100\n",
            "2014-01-08  -0.206997  30678700\n"
          ]
        }
      ],
      "execution_count": 10,
      "metadata": {
        "collapsed": true,
        "jupyter": {
          "source_hidden": false,
          "outputs_hidden": false
        },
        "nteract": {
          "transient": {
            "deleting": false
          }
        },
        "execution": {
          "iopub.status.busy": "2021-07-18T23:36:26.784Z",
          "iopub.execute_input": "2021-07-18T23:36:26.789Z",
          "iopub.status.idle": "2021-07-18T23:36:26.802Z",
          "shell.execute_reply": "2021-07-18T23:36:26.840Z"
        }
      }
    },
    {
      "cell_type": "code",
      "source": [
        "dataset[['Volume_SS', 'Volume']].hist()\n",
        "plt.show()"
      ],
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "text/plain": "<Figure size 432x288 with 2 Axes>",
            "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXcAAAEVCAYAAAAb/KWvAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuNCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8QVMy6AAAACXBIWXMAAAsTAAALEwEAmpwYAAAWKUlEQVR4nO3df7DldX3f8edLVoEiEXXNlQKyNjITiYxKN4g1TW4lSRWTLtOqg0UBh3bH1KZmZMZurYnRMRmcKf6AsdpNcVgs/qAaZEfQyIB3otNAg4qsiD9Ws5RdV1YQkFWTZs27f5zv0uvmLPfce8+553w/PB8zZ+73+/l+zznv7z3v8zrf873nfG+qCklSWx437QIkSeNnuEtSgwx3SWqQ4S5JDTLcJalBhrskNchwnxFJ5pPsnnYdktpguI9Zks8kefuQ8U1Jvpdk3TTqktaCOymzw3Afv23Aq5PkkPHXAFdX1YEp1CQtS0s7KUkuSvL1JA8nuTfJDUmO7ZadmOQTSe5L8lCSrya5cMolj4XhPn6fBJ4K/NODA0meDPwWcFWS9yT5bnd5T5Ijh91IkkryrEXzVyZ5Rzc9n2R3kjcl2Zdkb5Jzkpyd5JtJfpDkzYuu+7gkW5J8O8n9Sa5J8pQJbb/a0MROSpJfA/4YeFVVHQs8G/jYolU+BNwDnMzgefsa4N61rnMSDPcxq6qfANcA5y8afiXwdeBfAWcCzwOeC5wBvGWFd/V04CjgBOAPgD8BXg38YwYvLL+f5Jndur8LnAP8GvAP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zp1Dq0D4CngFQVR9g8MLzO0kOAD8Bzl3jF6E54Nru9WUd8OGq+kyS1y2q8QYGn5jZCfwYeO0a1rcsnn5Akho0q4dlJEmrYLhLUoMMd0lqkOEuSQ0y3DV1yznBWpJndCeg+nJ34qaz16JGqW8Md82CK4GXjLjuW4Brqur5DD7S918nVZTUZ4a7pm7YCdaS/EKSz3Tn+Ph8kl88uDrwc930k4DvrmGpUm/M5JeYJAb/s/J1VfWtJC9gsIf+YuAPGZzY6XeBY4Bfn16J0uwy3DVzupNL/RPgfy46M+2R3c9XAVdW1aVJXsjgm5fPqaq/m0Kp0swy3DWLHgc8WFXPG7LsIrrj81X1F0mOAtYD+9auPGn2ecxdM6c7FexfJXkFPPKvzZ7bLf4/wFnd+LOBo4DvT6VQaYZ5bhlN3eITrAH3Am8Fbgbez+Dfsz0e+GhVvT3JqcCfAE9k8MfVN1XVZ6dRtzTLDHdJapCHZSSpQYa7JDXIcJekBhnuktQgw12SGmS4S1KDDHdJatD/AxET8xbLr1omAAAAAElFTkSuQmCC\n"
          },
          "metadata": {
            "needs_background": "light"
          }
        }
      ],
      "execution_count": 11,
      "metadata": {
        "collapsed": true,
        "jupyter": {
          "source_hidden": false,
          "outputs_hidden": false
        },
        "nteract": {
          "transient": {
            "deleting": false
          }
        },
        "execution": {
          "iopub.status.busy": "2021-07-18T23:36:26.810Z",
          "iopub.execute_input": "2021-07-18T23:36:26.815Z",
          "iopub.status.idle": "2021-07-18T23:36:26.912Z",
          "shell.execute_reply": "2021-07-18T23:36:26.987Z"
        }
      }
    },
    {
      "cell_type": "markdown",
      "source": [
        "# Log Transformation"
      ],
      "metadata": {
        "nteract": {
          "transient": {
            "deleting": false
          }
        }
      }
    },
    {
      "cell_type": "code",
      "source": [
        "from sklearn.preprocessing import PowerTransformer"
      ],
      "outputs": [],
      "execution_count": 12,
      "metadata": {
        "collapsed": true,
        "jupyter": {
          "source_hidden": false,
          "outputs_hidden": false
        },
        "nteract": {
          "transient": {
            "deleting": false
          }
        },
        "execution": {
          "iopub.status.busy": "2021-07-18T23:36:26.920Z",
          "iopub.execute_input": "2021-07-18T23:36:26.926Z",
          "iopub.status.idle": "2021-07-18T23:36:26.936Z",
          "shell.execute_reply": "2021-07-18T23:36:26.990Z"
        }
      }
    },
    {
      "cell_type": "code",
      "source": [
        "# Instantiate PowerTransformer\n",
        "pow_trans = PowerTransformer()\n",
        "\n",
        "# Train the transform on the data\n",
        "pow_trans.fit(dataset[['Volume']])\n",
        "\n",
        "# Apply the power transform to the data\n",
        "dataset['Volume_LG'] = pow_trans.transform(dataset[['Volume']])"
      ],
      "outputs": [],
      "execution_count": 13,
      "metadata": {
        "collapsed": true,
        "jupyter": {
          "source_hidden": false,
          "outputs_hidden": false
        },
        "nteract": {
          "transient": {
            "deleting": false
          }
        },
        "execution": {
          "iopub.status.busy": "2021-07-18T23:36:26.944Z",
          "iopub.execute_input": "2021-07-18T23:36:26.950Z",
          "iopub.status.idle": "2021-07-18T23:36:26.957Z",
          "shell.execute_reply": "2021-07-18T23:36:26.993Z"
        }
      }
    },
    {
      "cell_type": "code",
      "source": [
        "print(dataset[['Volume_LG', 'Volume']].head())"
      ],
      "outputs": [
        {
          "output_type": "stream",
          "name": "stdout",
          "text": [
            "            Volume_LG    Volume\n",
            "Date                           \n",
            "2014-01-02  -0.356839  20548400\n",
            "2014-01-03  -0.238326  22887200\n",
            "2014-01-06   0.485856  42398300\n",
            "2014-01-07   0.501407  42932100\n",
            "2014-01-08   0.095745  30678700\n"
          ]
        }
      ],
      "execution_count": 14,
      "metadata": {
        "collapsed": true,
        "jupyter": {
          "source_hidden": false,
          "outputs_hidden": false
        },
        "nteract": {
          "transient": {
            "deleting": false
          }
        },
        "execution": {
          "iopub.status.busy": "2021-07-18T23:36:26.965Z",
          "iopub.execute_input": "2021-07-18T23:36:26.970Z",
          "iopub.status.idle": "2021-07-18T23:36:26.981Z",
          "shell.execute_reply": "2021-07-18T23:36:26.996Z"
        }
      }
    },
    {
      "cell_type": "code",
      "source": [
        "dataset[['Volume', 'Volume_LG']].hist()\n",
        "plt.show()"
      ],
      "outputs": [
        {
          "output_type": "display_data",
          "data": {
            "text/plain": "<Figure size 432x288 with 2 Axes>",
            "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXcAAAEVCAYAAAAb/KWvAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuNCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8QVMy6AAAACXBIWXMAAAsTAAALEwEAmpwYAAAZdklEQVR4nO3df5ScVX3H8fcHiIQCyo/QNQ3ociRV0RyCzQEstl2DKD9sgy1wQOSH5TTaQgs1pxqtrfiDc9Ajv6SWNhRK0GiIIsIBiiBkj6UVkGAMJIESIJTEQAQSYEXTbvz2j+eunQyzuzM7M/s8e/fzOmfOztznmWfvzD772bt3nnuvIgIzM8vLTmVXwMzMOs/hbmaWIYe7mVmGHO5mZhlyuJuZZcjhbmaWIYd7RUjqk7Sh7HqYWR4c7h0m6XZJn2tQPk/SM5J2KaNeZuPBjZTqcLh33mLgQ5JUV346sCQiBkuok1lLcmmkSOqVFMPVV9JMSUsl/UzSS5Iek3SFpP3Hu66d5nDvvO8C+wK/N1QgaW/g/cB1ki6T9NN0u0zSro0Okk7Ig2oeXyvpC+l+n6QNkj4uabOkTZJOkHScpP+S9IKkT9U8dydJCyU9Lul5Scsk7dOl1295yL6Rkn6/7gN+ChwaEa8FjgQeB95VZt06weHeYRHxC2AZcEZN8cnAI8CfAEcAs4FDgMOAT4/xW70emArMAP4euAr4EPA7FH9Y/k7SgWnfvwROAP4A+C1gC/DVMX5fmxy+S/6NlAuA/4iIj0XEBoCI2BwRl0XE0jaOWwkO9+5YDJwoaWp6fEYqOw34XDqBfgZ8lqIlNBb/C1wYEf8LLAWmAZdHxMsRsRpYQ/EHBOCjwN9GxIaI2EZxUp84Uf61tvE3SRop7wFuaOP5leZw74KIuAd4DjhB0psoTv5vUJyQT9Xs+lQqG4vnI2J7uv+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y7cqZTaROdytdI0mWJP0Jkm3S1oh6d8lvWVod+C16f7rgJ+OY1XNJoyqTj9gtgj4aEQ8Julwihb6XOAC4A5JfwnsDjQ1DN9ssnG4W+WkScp+F/hWMfsBALumr6cC10bExZLeCXxN0tsj4lclVNWsshzuVkU7AVsjYnaDbWeT+ucj4oeSpgLTgM3jVz2z6nOfu1VOmlL4SUknQTF5maRD0ub/Bo5K5W8FpgI/K6WiZhXmuWWsdGmCtT6KFvizwGeAuynmJZ8OTAGWRsTnJB0MXAXsQfHh6scj4o4y6m1WZQ53M7MMuVvGzCxDDnczsww53M3MMuRwNzPLkMPdzCxDDnczsww53M3MMvR/7AmOeKVZEoMAAAAASUVORK5CYII=\n"
          },
          "metadata": {
            "needs_background": "light"
          }
        }
      ],
      "execution_count": 15,
      "metadata": {
        "collapsed": true,
        "jupyter": {
          "source_hidden": false,
          "outputs_hidden": false
        },
        "nteract": {
          "transient": {
            "deleting": false
          }
        },
        "execution": {
          "iopub.status.busy": "2021-07-18T23:36:27.013Z",
          "iopub.execute_input": "2021-07-18T23:36:27.027Z",
          "iopub.status.idle": "2021-07-18T23:36:27.147Z",
          "shell.execute_reply": "2021-07-18T23:36:27.138Z"
        }
      }
    }
  ],
  "metadata": {
    "kernel_info": {
      "name": "python3"
    },
    "language_info": {
      "name": "python",
      "version": "3.6.12",
      "mimetype": "text/x-python",
      "codemirror_mode": {
        "name": "ipython",
        "version": 3
      },
      "pygments_lexer": "ipython3",
      "nbconvert_exporter": "python",
      "file_extension": ".py"
    },
    "kernelspec": {
      "argv": [
        "C:/Users/Tin Hang/Anaconda3\\python.exe",
        "-m",
        "ipykernel_launcher",
        "-f",
        "{connection_file}"
      ],
      "display_name": "Python 3",
      "language": "python",
      "name": "python3"
    },
    "nteract": {
      "version": "0.28.0"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 0
}